import Mock from 'mockjs';

Mock.mock('/api/test', 'get', () => {
    return {
        code: 200,
        data: {
            name: 'mockjs',
        },
        message: 'success',
    };
});

/**
 * 使用示例 在 xxx.tsx中引入
 import '../mock';
  import axios from 'axios';
  axios.get('/api/test').then(res => {
      console.log(res.data);
  });
 */
